#define _CRT_SECURE_NO_WARNINGS 1
#include "HeapSort.h"

//void testQuickSort()
//{
//	int a[10] = { 5, 8, 15, 23, 7, 2, 19, 11, 3, 14 };
//	NonRQuickSort(a, 0, 9);
//	for (int i = 0; i < 10; i++)
//	{
//		std::cout << a[i] << " ";
//	}
//	std::cout << std::endl;
//}
//
//void testBubbleSort()
//{
//	int a[10] = { 5, 8, 15, 23, 7, 2, 19, 11, 3, 14 };
//	BubbleSort(a, 10);
//	for (int i = 0; i < 10; i++)
//	{
//		std::cout << a[i] << " ";
//	}
//	std::cout << std::endl;
//}

void testHeapSort()
{
	int a[10] = { 5, 8, 15, 23, 7, 2, 19, 11, 3, 14 };
	HeapSort(a, 10);
	for (int i = 0; i < 10; i++)
	{
		std::cout << a[i] << " ";
	}
	std::cout << std::endl;
}

int main()
{
	//testQuickSort();
	testHeapSort();
	return 0;
}